import http from '@/assets/utils/http.js';

export function Login(parmas){//登录
	return http.post('api/testLoginController/login', parmas, "")
}
export function $FindMyAccountMess(){//查看个人信息
	return http.get('api/wqunAccountController/findMyAccountMess', "","")
}
export function ChangeMyMess(parmas){//修改个人信息
	return http.post('api/wqunAccountController/changeMyAccount', parmas,"")
}
export function UploadImg(parmas){//上传图片
	return http.post('api/util/uploadImg', parmas,"")
}
export function findMyLickArticle(parmas){//查看自己点缀文章
	return http.get('api/blog/findLikeArticleById/'+parmas, "","")
}
export function findMyCollectArticle(parmas){//查看自己点缀文章
	return http.get('api/blog/findCollectArticleById/'+parmas, "","")
}
export function findMyLookArticle(parmas){//查看自己点缀文章
	return http.get('api/blog/findLookArticleById/'+parmas, "","")
}
export function findMyAccountType(parmas){//查看自己的身份信息
	return http.get('api/wqunAccountController/findMyAccountType', "","")
}
export function findAllArticle(){//用户查看所有文章
	return http.get('api/blog/findAllArticle', "","")
}
export function searchAllArticle(parmas){//搜索查看文章
	return http.get('api/blog/searchAllArticle/'+parmas, "","")
}
export function $isLike(parmas){//是否点赞该文章
	return http.post('api/blog/isLike',parmas,"")
}
export function $isCollect(parmas){//是否收藏该文章
	return http.post('api/blog/isCollect', parmas,"")
}
export function $commentNumById(parmas){//文章评论数
	return http.get('api/wqunComment/commentNumById/'+parmas, "","")
}
export function $findArticleById(id,uid){//用户浏览文章
	return http.get('api/blog/findArticleById/'+id+'/' + uid,"","")
}
export function $like(parmas){//用户点赞，取消点赞
	return http.post('api/blog/like',parmas,"")
}
export function $collect(parmas){//用户收藏，取消收藏
	return http.post('api/blog/collect',parmas,"")
}
export function $findCommentById(parmas){//查看评论
	return http.get('api/wqunComment/findCommentById/'+parmas,"","")
}
export function $deleteComment(parmas){//删除评论
	return http.get('api/wqunComment/deleteComment/'+parmas,"","")
}
export function $addComment(parmas){//发表评论
	return http.post('api/wqunComment/addComment',parmas,"")
}
export function $findMyCommunitySetUp(parmas){//获取我的社区评论设置
	return http.get('api/wqunUserSetUp/findAllCommunity/'+parmas,"","")
}
export function $updateByCommunitySetUp(parmas){//修改我的社区评论设置
	return http.post('api/wqunUserSetUp/updateByCommunity',parmas,"")
}
export function $findAllCommunityFirst(parmas){//第一次获取社区信息
	return http.get('api/wqunCommunity/findAllCommunityFirst/'+parmas,"","")
}
export function $findAllCommunity(startId,total){//自动刷新获取信息
	return http.get('api/wqunCommunity/findAllCommunity/'+startId + '/' + total,"","")
}
export function $addCommunity(parmas){//自动刷新获取信息
	return http.post('api/wqunCommunity/addCommunity',parmas,"")
}
export function $deleteCommunityById(id,uid){//自动刷新获取信息
	return http.get('api/wqunCommunity/deleteCommunityById/'+id+'/' + uid,"","")
}
export function $findAccountPublicById(parmas){//获取用户公共信息
	return http.get('api/wqunAccountController/findAccountPublicById/'+parmas,"","")
}
export function $communityUserMess(){//获取社区用户列表
	return http.get('api/wqunCommunity/communityUserMess',"","")
}
export function $accountNumById(){//用户数量统计
	return http.get('api/wqunAccountController/accountNumById',"","")
}
export function $accountAddAtSeven(){//7日内新增人数统计
	return http.get('api/wqunAccountController/accountAddAtSeven',"","")
}
export function $AllBlogNum(){//文章总数统计
	return http.get('api/blog/AllBlogNum',"","")
}
export function $allCommentNum(){//评论总数统计
	return http.get('api/wqunComment/allCommentNum',"","")
}
export function $allProjectNum(){//项目总数统计
	return http.get('api/wqunProject/allProjectNum',"","")
}
export function $tenYearData(){//围群10年数据统计
	return http.get('api/wqunDataStatisticsController/tenYearData',"","")
}
export function $sendTextMail(parmas){//发送邮件验证码
	return http.get('api/email/sendTextMail/'+parmas,"","")
}
export function $bindEmailCode(parmas){//发送邮件验证码
	return http.get('api/email/bindEmailCode/'+parmas,"","")
}
export function $updateMyEmail(emial,code){//修改邮箱
	return http.get('api/wqunAccountController/updateMyEmail/'+emial+'/'+code,"","")
}
export function $updatePassCode(){//修改密码短信发送
	return http.get('api/email/updatePassCode',"","")
}
export function $codeIsCorrect(code){//验证验证码是否正确
	return http.get('api/email/codeIsCorrect/'+code,"","")
}
export function $changeAccountPass(code){//修改用户密码
	return http.get('api/wqunAccountController/changeAccountPass/'+code,"","")
}
export function $loginOut(){//退出登录
	return http.get('api/testLoginController/loginOut',"","")
}
export function $register(parmas){//用户注册
	return http.post('api/testLoginController/register',parmas,"")
}
export function $emailCodeIsCorrect(email,code){//找回密码验证码验证
	return http.get('api/email/emailCodeIsCorrect/'+email + "/"+code,"","")
}
export function $findAccountPass(email,code){//找回密码修改密码
	return http.get('api/wqunAccountController/findAccountPass/'+email + "/"+code,"","")
}
// export function $emailLogin(email,code){//找回密码修改密码
// 	return http.get('api/testLoginController/emailLogin',"","")
// }


